﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Crossroad.System.User.Model
{
    ///<summary>
    ///应用信息 app_info
    ///</summary>
    [SugarTable("app_info")]
    public partial class AppInfo : ModelContext
    {
        public AppInfo()
        {
            LoadDefVal();
        }

        public AppInfo(bool loadDef)
        {
            if(loadDef)
                LoadDefVal();
        }

        private void LoadDefVal()
        {
            this.status = Convert.ToInt16("1");
            this.createTime = Convert.ToInt32("0");
            this.creatorId = Convert.ToInt32("0");
        }

        /// <summary>
           /// Desc:描述
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string description {get;set;}

           /// <summary>
           /// Desc:应用id
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true)]
           public string id {get;set;}

           /// <summary>
           /// Desc:应用名称
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string name {get;set;}

           /// <summary>
           /// Desc:状态:1.启用,2.禁用
           /// Default:1
           /// Nullable:True
           /// </summary>           
           public short? status {get;set;}

           /// <summary>
           /// Desc:创建时间
           /// Default:0
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="create_time")]
           public int? createTime {get;set;}

           /// <summary>
           /// Desc:创建人
           /// Default:0
           /// Nullable:True
           /// </summary>           
           [SugarColumn(ColumnName="creator_id")]
           public int? creatorId {get;set;}

    }
}
